<?php
namespace app\admin\controller;
use think\Controller;
use app\lib\exception\LoginException;
use app\lib\exception\SuccessMessage;


class Base extends Controller
{
    public function __construct()
    {
       parent::__construct(); 
        $adminid = session('admin_id');
        if($adminid == 0) {
            $this->redirect(url('./login'));
        }
       
    }

}